<%--
  Created by IntelliJ IDEA.
  User: Fling
  Date: 2020/3/10
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <style>
        span{
            color: red;
        }
    </style>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#getCode").click(function () {
                $(this).attr("src","${pageContext.request.contextPath}/getCode?"+new Date().getTime())
            })
        })
    </script>
</head>
<body>
<span>${error}</span>
<form action="${pageContext.request.contextPath}/login.do" method="post">
    用户名：<input type="text" name="userCode"/><br>
    密码：<input type="password" name="password"/><br>
    验证码：<input title="text" name="code"/>
    <img src="${pageContext.request.contextPath}/getCode" id="getCode"><br>
    <input type="submit" value="登录"/>
</form>

</body>
</html>
